import { createRouter, createWebHistory } from "vue-router";

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: "/",
      redirect: "/login",
    },
    {
      path: "/login",
      name: "login",
      component: () => import("../views/LogIn.vue"),
    },
    {
      path: "/signin",
      name: "signin",
      component: () => import("../views/SignIn.vue"),
    },
    {
      path: "/index",
      name: "index",
      component: () => import("../views/Index.vue"),
    },
    {
      path: "/detail",
      name: "detail",
      component: () => import("../views/Detail.vue"),
    },
    {
      path: "/order",
      name: "order",
      component: () => import("../views/Order.vue"),
    },
    {
      path: "/set",
      name: "set",
      component: () => import("../views/Set.vue"),
    },
    {
      path: "/mind",
      name: "mind",
      component: () => import("../views/Mind.vue"),
    },
    {
      path: "/set-order",
      name: "setOrder",
      component: () => import("../views/SetOrder.vue"),
    },
    {
      path: "/set-accept",
      name: "setAccept",
      component: () => import("../views/SetAccept.vue"),
    },
    {
      path: "/set-order-det",
      name: "setOrderDet",
      component: () => import("../views/SetOrderDet.vue"),
    },
    {
      path: "/set-accept-det",
      name: "setAcceptDet",
      component: () => import("../views/SetAcceptDet.vue"),
    },
    {
      path: "/performance",
      name: "Performance",
      component: () => import("../views/Performance.vue"),
    },
    {
      path: "/perfordetail",
      name: "perfordetail",
      component: () => import("../views/Perfordetail.vue"),
    },
    {
      path: "/indexp",
      name: "indexp",
      component: () => import("../views/Indexp.vue"),
    },
    {
      path: "/detailp",
      name: "detailp",
      component: () => import("../views/Detailp.vue"),
    },
    {
      path: "/dispatch",
      name: "dispatch",
      component: () => import("../views/Dispatch.vue"),
    },
    {
      path: "/warehouse",
      name: "warehouse",
      component: () => import("../views/Warehouse.vue"),
    },
    {
      path: "/warehouseDetail",
      name: "warehouseDetail",
      component: () => import("../views/WarehouseDetail.vue"),
    },
    {
      path: "/staffHall",
      name: "staffHall",
      component: () => import("../views/StaffHall.vue"),
    },
    {
      path: "/employee",
      name: "employee",
      component: () => import("../views/Employee.vue"),
    },
    {
      path: "/appeal",
      name: "appeal",
      component: () => import("../views/Appeal.vue"),
    },
  ],
});
export default router;
